all:
	make clean
	make arm
	make win 

arm:
	arm-unknown-linux-gnu-g++ -mcpu=arm9  -o fb_arm main.c Firebot.cpp socket.cpp TS7260IO.cpp IO.cpp RS232.cpp 
armc:
	arm-unknown-linux-gnu-gcc -mcpu=arm9  -o fb_arm main.c Firebot.cpp socket.cpp TS7260IO.cpp IO.cpp RS232.cpp 

win:
	g++ main.c Firebot.cpp socket.cpp -o fb_win.exe

upload:
	make arm
	ftp -s:ftpcom.txt 192.168.0.222
	telnet 192.168.0.222 -l root
	chmod +x fb_arm

clean:
	rm -f fb_arm
	rm -f fb_win.exe
